import http from "../utils/request";


export function feedback(qyery:any,params:object) {
  return http.post(`feedback?userId=${qyery.userId}&content=${qyery.content}&contact=${qyery.contact}&type=${qyery.type}`, params);
}
export function getUeser() {
  return http.get(`user/v2`, {});
}
export function getCode(params:object) {
  return http.get(`phoneCode`, params);
}
export function saveUeser(params:object) {
  return http.post(`user/save`, params);
}
export function uploadImage(params:object) {
  return http.post(`common/upload/images`, params);
}
export function phoneLogin(params:object) {
  return http.post(`login`, params);
}
export function codeLogin(params:object) {
  return http.post(`login_phone_dynamic`, params);
}
export function register(params:object) {
  return http.post(`register`, params);
}
export function timePlanner(params:object) {
  return http.get(`timePlanner/list`, params);
}
export function timePlannerDetail(params:object) {
  return http.get(`timePlanner/detail`, params);
}
export function bucketList(params:object) {
  return http.get(`bucketList/list`, params);
}
export function bucketAdd(params:object) {
  return http.post(`bucketList/add`, params);
}
export function bucketUpdate(params:object) {
  return http.post(`bucketList/update`, params);
}
export function bucketDel(params:object) {
  return http.post(`bucketList/del?id=${params.id}`, {});
}